package com.roy.minimq.namesrv.domain.entity;

import io.netty.channel.Channel;

public class BrokerLiveInfo {
    private long lastUpdateTimestamp;
    private Channel channel;

    public BrokerLiveInfo(long lastUpdateTimestamp, Channel channel) {
        this.lastUpdateTimestamp = lastUpdateTimestamp;
        this.channel = channel;
    }

    public long getLastUpdateTimestamp() {
        return lastUpdateTimestamp;
    }

    public void setLastUpdateTimestamp(long lastUpdateTimestamp) {
        this.lastUpdateTimestamp = lastUpdateTimestamp;
    }

    public Channel getChannel() {
        return channel;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }

    @Override
    public String toString() {
        return "BrokerLiveInfo{" +
                "lastUpdateTimestamp=" + lastUpdateTimestamp +
                ", channel=" + channel +
                '}';
    }
}
